﻿@using GameSchool.HtmlHelpers
@model GameSchool.ViewModels.Event.EditViewModel
@{
    ViewBag.Title = "Breyta vísindaferð";
}
<h2>
    Breyta vísindaferð</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm(htmlAttributes: new { @class = "form-horizontal" }))
{
    <div>
        <fieldset>
            <legend>Breyta upplýsingum um atburð</legend>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.LogoUrl, new { @class = "control-label" }, "Logo (url)")
                <div class="controls">
                    @Html.TextBoxFor(m => m.event_.LogoUrl, new { @class = "input-xlarge" })
                    @Html.ValidationMessageFor(m => m.event_.LogoUrl)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.CompanyName, new { @class = "control-label" }, "Fyrirtæki")
                <div class="controls">
                    @Html.TextBoxFor(m => m.event_.CompanyName, new { @class = "input-xlarge" }) @Html.ValidationMessageFor(m => m.event_.CompanyName)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.Location, new { @class = "control-label" }, "Staðsetning")
                <div class="controls">
                    @Html.TextAreaFor(m => m.event_.Location, new { @class = "input-xlarge" }) @Html.ValidationMessageFor(m => m.event_.Location)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.Description, new { @class = "control-label" }, "Lýsing")
                <div class="controls">
                    @Html.TextAreaFor(m => m.event_.Description, new { @class = "input-xlarge", rows = "6" })
                    @Html.ValidationMessageFor(m => m.event_.Description)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.EventStarts, new { @class = "control-label" }, "Hvenær")
                <div class="controls">
                    @Html.TextBoxFor(m => m.event_.EventStarts, new { @class = "input-medium", type = "datetime" })
                    @Html.ValidationMessageFor(m => m.event_.EventStarts)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.MaximumAttendees, new { @class = "control-label" }, "Hámarksfjöldi")
                <div class="controls">
                    @Html.TextBoxFor(m => m.event_.MaximumAttendees, new { @class = "input-medium", type = "number" })
                    @Html.ValidationMessageFor(m => m.event_.MaximumAttendees)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.RegistrationBegins, new { @class = "control-label" }, "Skráning byrjar")
                <div class="controls">
                    @Html.TextBoxFor(m => m.event_.RegistrationBegins, new { @class = "input-medium", type = "datetime" })
                    @Html.ValidationMessageFor(m => m.event_.RegistrationBegins)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(m => m.event_.RegistrationEnds, new { @class = "control-label" }, "Skráning endar")
                <div class="controls">
                    @Html.TextBoxFor(m => m.event_.RegistrationEnds, new { @class = "input-medium", type = "datetime" })
                    @Html.ValidationMessageFor(m => m.event_.RegistrationEnds)
                </div>
            </div>
            <div class="form-actions">
                <input type="submit" class="btn btn-primary" value="Uppfæra vísindaferð" />
            </div>
        </fieldset>
    </div>
}
